package com.ityu.myapi.service;


import com.ityu.common.utils.Utils;

import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

@Service
public class StudyService {

    @Async
    public void testA(){
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        Utils.myLog("=======testA======"+Thread.currentThread().getName());
    }


    public void testSy(){
        try {
            Thread.sleep(5000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        Utils.myLog("=======testSy======");
    }

}
